﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/List.Master"  AutoEventWireup="true" CodeBehind="Bu_AuditTable_FGW_List.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Audit.Bu_AuditTable_FGW_List"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="../../Scripts/table.js"></script>
<script language="javascript" type="text/javascript">
    function openwindow(url, name) {
        var iWidth = 940; //弹出窗口的宽度;
        var iHeight = window.screen.availHeight - 30; //弹出窗口的高度;
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
        window.open(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no');
    }
    function ViewReport(id,batchNo,counter) {
        var url = '<%=System.Configuration.ConfigurationManager.AppSettings["ReportServerURL"] %>/R017&id=' + id + '&rc:parameters=false';
        openwindow(url, '第' + batchNo + '批第' + counter + '次资金支付汇总表');
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">		
    <div class="query_area">
		批次号：<asp:TextBox ID="numBatchNo" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isInt();"></asp:TextBox>&nbsp;&nbsp;
		
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>            
    <div class="button_area">
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"/>
        <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="删 除" 
            OnClientClick="javascript:return doListDelConfirm('chkID','chkAll');"             
            onclick="btnDelete_Click" />
    </div>
            
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>
            <th align="center" width="70px">批次</th>
            <th align="center" width="70px">次数</th>
            <th align="center"  width="90px">日期</th>
           <th align="center" width="70px">项目（个）</th>            
            <th align="center">建设单位（个）</th>
            <th align="center" width="60px">合同（份）</th>
            <th align="center" width="120px">施工\监理单位（个）</th>
            <th align="center" width="80px">作业表（个）</th>
            <th align="center">请款金额（元）</th>
            <th align="center">审核金额（元）</th>
             <th align="center" width="50px">支付完毕</th>
            <th width="80px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
                        <%# GetCheckBox(DataBinder.Eval(Container.DataItem, "ID") + "", Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsLast")))%>
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"BatchNo") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"Counter") %></td>
					<td><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem,"PrintDate")) %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ProjectCount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"OwnerCount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ContractCount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ContractorCount") %></td>
					<td><%#  DataBinder.Eval(Container.DataItem,"ATCount") %></td>
					<td style="text-align:right"><%# string.Format("{0:N}", DataBinder.Eval(Container.DataItem,"Amount_DocRec_S")) %></td>
					<td style="text-align:right"><%# string.Format("{0:N}",  DataBinder.Eval(Container.DataItem,"Amount_S")) %></td>
					<td><%# Honestysoft.Baseframework.WebUI.ScriptHelper.Image.GetBooleanImage(DataBinder.Eval(Container.DataItem,"IsEnd")) %></td>
					<td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem, "ID") + "", Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsLast")), DataBinder.Eval(Container.DataItem, "BatchNo") + "", DataBinder.Eval(Container.DataItem, "Counter")+"")%>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
    <div class="paging_area">
     <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>     
    </div>
    <script language="javascript" type="text/javascript">
        uniteTable(tGrid, 2);
   </script>
</asp:Content>